package com.ingenic.glass.camera;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.util.Log;

public class BootBroadcastReceiver extends BroadcastReceiver {

	private String TAG = "BootBroadcastReceiver";

	@Override
	public void onReceive(Context context, Intent intent) {
		if(intent.getAction().equals("android.intent.action.BOOT_COMPLETED")){
			Log.d(TAG , "android.intent.action.BOOT_COMPLETED");
			//眼镜启动时将camera状态置为“”。避免状态对不上。
			Settings.System.putString(context.getContentResolver(), "camera_state","");
		}
	}

}